<?
    if ($this->action == "view")
        echo $this->render("spa/view.phtml");
    else
    {
?>
<h1>
    <?=$this->title ?>
</h1>
<div id="container" style="margin-top: -50px;">
    <?=$this->render("spa/base.phtml"); ?>
</div>
<?
    };
?>